

import * as VueRouter from 'vue-router'

// @ts-ignore
import IndexPage from "../pages/IndexPage.vue";
// @ts-ignore
import TeamPage from "../pages/TeamPage.vue";
// @ts-ignore
import UserPage from "../pages/UserPage.vue";
// @ts-ignore
import UserEditPage from "../pages/UserEditPage.vue";
// @ts-ignore
import SearchPage from "../pages/SearchPage.vue";
// @ts-ignore
import SearchResultPage from "../pages/SearchResultPage.vue";

const routes = [
    {
        path: '/',
        component: IndexPage,

    },
    {
        path: '/team',
        component: TeamPage,
    },
    {
        path: '/user',
        component: UserPage,
    },
    {
        path: '/user/edit',
        component: UserEditPage ,

    },
    {
        path: '/user/list',
        component: SearchResultPage
    },
    {
        path: '/search',
        component: SearchPage
    },
]

const router = VueRouter.createRouter({
    // 4. 内部提供了 history 模式的实现。为了简单起见，我们在这里使用 hash 模式。
    history: VueRouter.createWebHashHistory(),
    routes, // `routes: routes` 的缩写
})
export  default  router